import 'package:grocery_app_demo/generated/json/base/json_field.dart';
import 'package:grocery_app_demo/generated/json/supplier_list_by_type_res_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class SupplierListByTypeResEntity {
  late int id;
  late String name;

  SupplierListByTypeResEntity();

  factory SupplierListByTypeResEntity.fromJson(Map<String, dynamic> json) =>
      $SupplierListByTypeResEntityFromJson(json);

  Map<String, dynamic> toJson() => $SupplierListByTypeResEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
